<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-04 16:53:56
 * @LastEditTime: 2022-08-26 14:59:55
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Http\Services\System;


use App\Http\Services\Service;
use App\Repositories\VersionRepository;

class VersionService extends Service
    {

    public function __construct(VersionRepository $repository)
        {
        $this->repository = $repository;
        }
    public function ver()
        {
        return $this->repository->orderBy("id", "desc")->first()?->id ?? 0;
        }
    }
